# -*- coding:utf-8 -*-
class Solution:
    def reOrderArray(self, array):
        # write code here
        first = [_ for _ in array if _%2==1]
        last = [_ for _ in array if _ %2==0]
        first.extend(last)
        return first



a = [2,2,2]
s= Solution()
m = s.reOrderArray(a)
print(m)